CXX = mpic++ -Wall

MAINTAINERCLEANFILES=  aclocal.m4 config.log config.status configure COPYING depcomp \
		      INSTALL install-sh Makefile.in missing

caffdram_lib_LIBRARIES = libcaffdram.a
caffdram_libdir = $(libdir)/manifold
libcaffdram_a_SOURCES = \
	Bank.cpp \
	Bank.h \
	Channel.cpp \
	Channel.h \
	Controller.cpp \
	Controller.h \
	Dreq.cpp \
	Dreq.h \
	Dsettings.cpp \
	Dsettings.h \
	McMap.cpp \
	McMap.h \
	Rank.cpp \
	Rank.h

pkginclude_caffdramdir = $(includedir)/manifold/caffdram

pkginclude_caffdram_HEADERS = \
	McMap.h \
	Controller.h

# CaffDRAM use coh_mem_req.h from mcp-cache. If this dependency changes,
# the following line should also change.
libcaffdram_a_CPPFLAGS = -I$(KERNEL_INC) -I$(MCPCACHE_INC)
